<template>
    <div>
        
    <van-tabbar v-model="active" class="tabbar" route>
        <van-tabbar-item icon="home-o" replace to="/" >首页</van-tabbar-item>
        <van-tabbar-item icon="label-o" replace to="/subject" >专题</van-tabbar-item>
        <van-tabbar-item icon="apps-o" replace to="/classify" >分类</van-tabbar-item>
        <van-tabbar-item icon="cart-o" replace to="/cart" >购物车</van-tabbar-item>
        <van-tabbar-item icon="user-o" replace to="/my" >我的</van-tabbar-item>
      </van-tabbar>
    </div>
</template>

<script>
export default {
    name: 'Wjm0714Tabbar',

    data() {
        return {
            active: 0,
        };
    },
    created(){
        
    },  
    mounted() {
        let iconIndex=JSON.parse(sessionStorage.getItem('iconIndex'));
        this.active=iconIndex
    },

    methods: {
        
    },
};
</script>

<style lang="less" >
    
    .commodity_navigation{
        z-index: 9999 !important;
    }
</style>